<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Scale Layout WebComponent Example</title>
  <style>
    /* 一些全局样式 */
    body, html {
      margin: 0;
      padding: 0;
      height: 100%;
      overflow: hidden;
    }
  </style>
  <!-- 如果你的WebComponent需要外部CSS，可以在这里引入 -->
  <!-- <link rel="stylesheet" href="path-to-your-styles.css"> -->
</head>
<script type="module">
</script>
<body>
  <!-- 使用scale-layout-element组件 -->
  <scale-layout-element propname="myScale" width="1920" height="1080" adpter-class="my-apter-area" resize-listenter="console.log('Resize event triggered')">
    <!-- 默认插槽的内容 -->
    <div class="content">
      <p>This is the main content area of the layout.</p>
      <!-- 你可以在这里添加更多的内容 -->
    </div>
    
    <!-- 具名插槽的内容，例如用于页眉或页脚 -->
    <div slot="header" class="header">
      <p>This is the header content of the layout.</p>
    </div>
  </scale-layout-element>

  <!-- 如果你的WebComponent或页面需要外部JavaScript，可以在这里引入 -->
  <!-- <script src="path-to-your-scripts.js"></script> -->
</body>
</html>